<template>
  <view class="empty-page" :style="{ height: containerHeight }">
    <image class="empty-icon" :src="imgUrl"></image>
    <view class="empty-text">{{ text }}</view>
  </view>
</template>
<script>
  export default {
    props: {
      containerHeight: {
        type: String,
        default: '100vh'
      },
      text: {
        type: String,
        default: '暂无'
      }
    },
    data() {
      return {
        imgUrl: '/static/default/not-find.png',
      };
    }
  }
</script>
<style lang="scss">
  .empty-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    background-color: #f5f5f5;
  }

  .empty-icon {
    width: 110px;
    height: 100px;
  }

  .empty-text {
    margin-top: 20px;
    font-size: 16px;
    color: #999999;
  }
</style>